import styled from "styled-components"

export const BottomWrapper = styled.div`
  width: 100%;
  display: flex;
  justify-content: center;
  .section {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    .info:last-child .infoWrapper {
      border: none;
    }
    /* background-color: red; */
    .info {
      display: flex;
      width: ${(props) => props.width};
      height: 100%;
      display: flex;
      align-items: center;
      user-select: none;
      font-size: 14px;
      border: 1px solid #ddd;
      background-color: ${(props) => (props.theme.isAlpha ? "#fff" : "none")};
      .infoWrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        margin-left: 20px;
        border-right: 1px solid #ddd;
        .title {
          font-weight: 700;
        }
        span {
          padding: 3px;
        }
      }

      &:nth-child(1) {
        border-right: 0px;
        border-radius: 30px 0 0 30px;
      }
      &:nth-child(2) {
        border-left: 0px;
        border-right: 0px;
        border-radius: ${(props) =>
          props.width === "50%" ? "0 30px 30px 0 " : "0"};
      }
      &:nth-child(3) {
        border-left: 0px;
        border-radius: 0 30px 30px 0;
      }
    }

    .section-enter {
      transform: scale(0.35, 0.727273) translateY(-60px);
      opacity: 0;
    }
    .section-enter-active {
      transform: scale(1) translateY(0);
      opacity: 1;
      transition: all 2000ms ease;
    }
    .section-exit {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
    .section-exit-active {
      transform: scale(0.35, 0.727273) translateY(-60px);
      opacity: 0;
      transition: all 2000ms ease;
    }
  }
`
